#ifndef __SYNC_TIME_H__
#define __SYNC_TIME_H__

#include <set>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include "Util/util.h"
#include "Util/logger.h"
#include "Network/Session.h"

using namespace Fdt;
class SyncTime  {
public:
	static SyncTime *instance(int port);

	bool Start();

private:
	SyncTime(int port);

	bool OnUdpData(const Buffer::Ptr &buf, struct sockaddr *peer_addr, int interleaved);
private:
	int _port = 0;
	Socket::Ptr _socket;
};


#endif
